package com.xbongbong.admin.model.impl;

import com.xbongbong.admin.domain.dao.PaasFormExplainRetainDao;
import com.xbongbong.admin.domain.entity.PaasFormExplainRetainEntity;
import com.xbongbong.admin.model.PaasFormExplainRetainModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author guohui.zhang
 * @Title: paasFormExplainRetain实现类
 * @date 2020/3/1910:51
 */
@Service("paasFormExplainRetainModel")
public class PaasFormExplainRetainModelImp  implements PaasFormExplainRetainModel {

    @Resource
    private PaasFormExplainRetainDao paasFormExplainRetainDao;
    /**
     * 检索菜单列表
     */
    private static final String COLUMNS = " id,oldId, corpid, app_id, menu_id, form_id, saas_mark, business_type, explains, enable, creator_id, add_time, update_time, del ";


    @Override
    public List<PaasFormExplainRetainEntity> findEntity(Map<String, Object> entity) {
       return paasFormExplainRetainDao.findEntitys(entity);
//        return null;
    }

    @Override
    public Integer insertBatch(List<PaasFormExplainRetainEntity> explainRetainEntities) {
       return paasFormExplainRetainDao.insertBatch(explainRetainEntities);
//        return null;
    }

    @Override
    public Integer deleteBatch(List<Long> formIds, String corpid) {
        return paasFormExplainRetainDao.deleteBatch(formIds,corpid);
    }
}
